package com.design.pattern.abstractfactory.factory;

import com.design.pattern.abstractfactory.product.*;

/**
 * Created by Administrator on 2016/5/17.
 * 生产运动型汽车的工厂
 */
public class SportFactory extends Factory {
    @Override
    public BenZ createBenZ(String carName) {
        return new BenZSport(carName);
    }

    @Override
    public Bmw createBmw(String carName) {
        return new BmwSport();
    }

    @Override
    public Audi createAudi(String carName) {
        return new AudiSport();
    }
}
